home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / soundkit / NXPlayStream.h next >
Text File  |  1993-01-28  |  2KB  |  54 lines

  1. /*
  2.  * NXPlayStream.h
  3.  *
  4.  * Copyright (c) 1992, NeXT Computer, Inc.  All rights reserved. 
  5.  */
  6.  
  7. #import "NXSoundStream.h"
  8.  
  9. @interface NXPlayStream:NXSoundStream
  10. {
  11.     float        _leftGain;
  12.     float        _rightGain;
  13.     BOOL        _isDetectingPeaks;
  14.     unsigned int    _peakHistory;
  15.     int            _reserved1;
  16. }
  17.  
  18. - initOnDevice:anObject;
  19. - (NXSoundDeviceError)activate;
  20. - getGainLeft:(float *)leftAmp right:(float *)rightAmp;
  21. - (NXSoundDeviceError)setGainLeft:(float)leftAmp right:(float)rightAmp;
  22. - (NXSoundDeviceError)getPeakLeft:(float *)leftAmp
  23.                             right:(float *)rightAmp;
  24.  
  25. // New for 3.1.
  26. - (NXSoundDeviceError)playBuffer:(void *)data
  27.                             size:(unsigned int)bytes
  28.                              tag:(int)anInt;
  29.  
  30. // Obsolete - use generic parameter api.
  31. - (NXSoundDeviceError)playBuffer:(void *)data
  32.                             size:(unsigned int)bytes
  33.                              tag:(int)anInt
  34.                     channelCount:(unsigned int)channels
  35.                     samplingRate:(float)rate
  36.                   bufferGainLeft:(float)leftAmp right:(float)rightAmp
  37.                     lowWaterMark:(unsigned int)lowWater
  38.                    highWaterMark:(unsigned int)highWater;
  39. - (NXSoundDeviceError)playBuffer:(void *)data
  40.                             size:(unsigned int)bytes
  41.                              tag:(int)anInt
  42.                     channelCount:(unsigned int)channels
  43.                     samplingRate:(float)rate;
  44. - (BOOL)isDetectingPeaks;
  45. - (NXSoundDeviceError)setDetectPeaks:(BOOL)flag;
  46. - (unsigned int)peakHistory;
  47. - (NXSoundDeviceError)setPeakHistory:(unsigned int)bufferCount;
  48.  
  49. @end
  50.  
  51. @interface Object(NXPlayStreamDelegate)
  52. - soundStreamDidUnderrun:sender;
  53. @end
  54.